import { UPDATE_MODEL_EVENT } from '@jctech/constants/event';
import { controlProps } from '@jctech/components/common/props';
import { propTypes } from '@jctech/utils/propTypes';

export const textboxProps = {
  ...controlProps,
  type: propTypes.oneOf(['text', 'number']).def('text'),
  clearable: propTypes.bool.def(false),
  // 当为 null undefined 不显示0
  noZero: propTypes.bool.def(false)
};

export const textboxEmits = [UPDATE_MODEL_EVENT];
